package com.ds.lens.data.common.document.dynamic;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;

/**
 * Description:
 *
 * @author WeiShaoying
 * @date 2020-05-11
 */
@Document(indexName = "dynamic_detection_result", type = "dynamic_detection_result", createIndex = false)
@Data
public class DynamicDetectionResult implements Serializable {

    private static final long serialVersionUID = 2456502059202648668L;
    @Id
    private String id;
    private Long monitorId;
    private Integer version;
    private String metricBy;
    private String subTopic;
    private Long timestamp;
    private Double actual;
    private Double forecast;
    private Double alertThresholdUpper;
    private Double alertThresholdLower;
    private Integer isAnomaly;
    /**
     * 人工标注 是否漏报
     */
    private Boolean isAbnormal;
    /**
     * 人工标注  是否误报
     */
    private Boolean isFalseAlert;
}
